package com.paperyy.module.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "consume")
public class Consume {

    @TableId(value = "c_id", type = IdType.AUTO)
    private Integer cid;
    @TableField("c_time")
    @JsonFormat(pattern = "yyyy-HH-dd HH:mm:ss")
    private Date ctime;
    @TableField("details")
    private String details;
    @TableField("c_money")
    private BigDecimal cmoney;
    @TableField("name")
    private String name;
}
